/**
 * Copyright 2016 Qiyi Inc. All rights reserved.
 *
 * @file:   StatisticAuto.Action.js
 * @path:   js-src/StatisticOcr/
 * @desc:   Action静态对象，声明对象以及绑定事件、对外接口等
 * @author: zhang@qiyi.com
 * @date:   2016-03-28
 */
qui(
    function(require, exports, module) {

        StatisticAuto.Action = (function() {

            //表格
            //统计OCR列表 old begin=====================
            var statisticGrid = null;

            var getStatisticGrid = function (options) {
                if (!statisticGrid) {
                    statisticGrid = new StatisticAuto.Grid($.extend(true,
                    {'$grid': $('#list'), type:0}, options))
                }
                return statisticGrid;
            }

            var statisticGridRun = function(options) {
                statisticGrid = getStatisticGrid(options);
                statisticGrid.init();
                console.log('grid run');
            }


            var run = function() {
              //  Ancestor.Config.EPG_AUTH.list='/statisticOcr/list';
                statisticGridRun({});
            }
            //统计OCR列表 old over=====================
            return {
                run:run,
                getStatisticOcrGrid:getStatisticGrid
            }
        })();
    }
)